package com.yykj.prescription.server.model.repository.template;

import com.yykj.prescription.server.model.entity.template.PrescriptionTemplate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PrescriptionTemplateRepository extends JpaRepository<PrescriptionTemplate,Integer>, JpaSpecificationExecutor<PrescriptionTemplate> {
    Page<PrescriptionTemplate> findAllByDoctorId(String doctorId, PageRequest pageRequest);
    List<PrescriptionTemplate> findAllByIdIn(List<Integer> tempIds);
}
